import requests from "../index";

class Single {
  /**
   * 获取修改input后 单关的计算值
   *
   * @param { Object } data 参数
   * @author yaojunhao
   **/
  getSingleChangeInput(data) {
    return requests({
      url: MODULE_BASE + `/match/calcSingleByPlayMethod`,
      data: data,
      method: "post",
    });
  }

  /**
   * 获取页面首页数据列表
   *
   * @author yaojunhao
   **/
  getDataList() {
    return requests({
      url: MODULE_BASE + `/match/calcSingle`,
      method: "post",
    });
  }
}

const MODULE_BASE = "/scream/api";
const single = new Single();
export default single;
